package com.czr.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * <p>
 * 用户标
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("czr_user")
@ApiModel(value="c_user对象", description="用户表")
public class CzrUserResultVo extends Model<CzrUserResultVo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键(不用传)")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户账号")
    @TableField("user_name")
    private String username;

    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "手机号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "医院名称")
    @TableField("unit")
    private String unit;

    @ApiModelProperty(value = "用户头像")
    @TableField("user_logo")
    private String userLogo;


    @ApiModelProperty(value = "用户昵称")
    @TableField("nick_name")
    private String nickName;

    @ApiModelProperty(value = "性别")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "出生年月")
    @TableField("birth_date")
    private String birthDate;


    @ApiModelProperty(value = "职务职称")
    @TableField("user_post")
    private String userPost;


    @ApiModelProperty(value = "电子邮箱")
    @TableField("email")
    private String email;


    @ApiModelProperty(value = "所属省份")
    @TableField("province")
    private String province;

    @ApiModelProperty(value = "所属市")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "所属区县")
    @TableField("area")
    private String area;

    @ApiModelProperty(value = "排序字段")
    @TableField("u_sort")
    private Integer uSort;

    @ApiModelProperty(value = "我的身份(1，我是医生，2我是患者)")
    @TableField("u_identity")
    private Integer uIdentity;

    @ApiModelProperty(value = "是否手术(1，观察，2半切 ，3次全切，4全切)")
    @TableField("is_operation")
    private Integer isOperation;

    @ApiModelProperty(value = "手术时间")
    @TableField("operation_time")
    private String operationTime;

    @ApiModelProperty(value = "是否碘131 1是 2否")
    @TableField("is_dian")
    private Integer isDian;

    @ApiModelProperty(value = "碘131剂量")
    @TableField("dose")
    private String dose;

    @ApiModelProperty(value = "其他描述")
    @TableField("u_describe")
    private String uDescribe;

    @ApiModelProperty(value = "登陆时间")
    @TableField("login_date")
    private String loginDate;

    @ApiModelProperty(value = "上一次登陆时间")
    @TableField("old_login_time")
    private String oldLoginTime;

    @ApiModelProperty(value = "用户标识")
    @TableField("uuid")
    private String uuid;

    @ApiModelProperty(value = "插入时间")
    @TableField("insert_time")
    private String insertTime;
    @ApiModelProperty(value = "状态  1正常 -1删除")
    @TableField("status")
    private Integer status;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
